<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <!--<title>tab</title>-->
    <style type="text/css">

    </style>
    <link rel="stylesheet" href="../css/app.css"/>
</head>

<body>
<div class="mod_tad">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tbody>
        <tr>
            <td align="right"><p>服务项目</p></td>
            <td>&nbsp;</td>
            <td width="71%">
                <p><select name="select" id="select_fw" onchange="context()">
                    <option value="0">房地产价格总额</option>
                    <option value="1">总估价师和技术总监</option>
                    <option value="2">执业房地产估价师</option>
                    <option value="3">其他评估人员</option>
                    <!--<option value="4">助理人员计时服务</option> -->
                </select></p>
            </td>
        </tr>
        </tbody>
    </table>
    <div class="mod_tad" id="test1">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody>
            <tr>
                <td width="26%" align="right"><p>评估值</p><br>
                   </td>
                <td width="3%">&nbsp;</td>
                <td width="71%"><p><input name="" type="tel" class="inputext" id="assessedvalue" onKeyUp="context();">元
                </p><br>
                    <p id="assessedDS"></p></td>
            </tr>
            <tr style="display:none;">
                <td align="right"><p>&nbsp;</p></td>
                <td>&nbsp;</td>
                <td><p>低限</p></td>
            </tr>
            <tr>
                <td align="right"><p>标准收费</p><br>
                   </td>
                <td>&nbsp;</td>
                <td><p id="valueSX">￥0.00</p><br>
                    <p id="valueDX"></p></td>
            </tr>
            <tr>
                <td align="right"><p>浮动比例</p></td>
                <td>&nbsp;</td>
                <td><p><input name="" type="tel" value="100" class="inputext" id="floatingrate" onKeyUp="context();">%
                </p></td>
            </tr>
            <tr>
                <td align="right"><p>收费金额</p><br>
                   </td>
                <td>&nbsp;</td>
                <td><p id="valueSX_sfjr">￥0.00</p><br>
                    <p id="valueDX_sfjr"></p></td>
            </tr>
            <tr style="display:none;">
                <td align="right"><p>&nbsp;</p></td>
                <td>&nbsp;</td>
                <td><p>高限</p></td>
            </tr>
            <tr style="display:none;">
                <td align="right"><p>标准收费</p><br>
                   </td>
                <td>&nbsp;</td>
                <td><p id="valueSX_gx">￥0.00</p><br>
                    <p id="valueDX_gx"></p></td>
            </tr>
            <tr style="display:none;">
                <td align="right"><p>浮动比例</p></td>
                <td>&nbsp;</td>
                <td><p id="gxfd">100%</p></td>
            </tr>
            <tr style="display:none;">
                <td align="right" onclick="alert(share_computation_web())"><p>收费金额</p><br>
                   </td>
                <td>&nbsp;</td>
                <td><p id="valueSX_gx1">￥0.00</p><br>
                    <p id="valueDX_gx1"></p></td>
            </tr>
            </tbody>
        </table>
    </div>

    <div class="mod_tad" id="test2" style="display:none;">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody>
            <tr>
                <td width="26%" align="right"><p>工作时间(小时)</p></td>
                <td width="3%">&nbsp;</td>
                <td width="71%"><p><input name="" type="tel" class="inputext" id="zsgr" onKeyUp="context();"></p></td>
            </tr>
            <tr>
                <td align="right"><p>标准收费</p><br>
                   </td>
                <td>&nbsp;</td>
                <td><p id="bzsfSX5">￥0.00</p><br>
                    <p id="bzsfDX5"></p></td>
            </tr>
            <tr>
                <td align="right"><p>浮动系数</p></td>
                <td>&nbsp;</td>
                <td><p><input name="" type="tel" value="100" class="inputext" id="fdxs5" onKeyUp="context();">%</p></td>
            </tr>
            <tr>
                <td align="right" onclick="alert(share_computation_web())"><p>收费金额</p><br>
                   </td>
                <td>&nbsp;</td>
                <td><p id="sfjrXS5">￥0.00</p><br>
                    <p id="sfjrDS5"></p></td>
            </tr>
            </tbody>
        </table>
    </div>

</div>


<br>
<div class="copy_div" id="copy_div">
    <div class="cp_btn" onclick="copyProcessFun('西安市房地产评估协会文件 西评协发 [2018]03号）');">复制过程</div>
</div>

<div id="process" class="process_div"></div>

<div class="policy_div">
    <h1>
        西安市房地产评估协会文件<span>&nbsp;&nbsp; </span>西评协发<span>[2018]03</span>号
    </h1>
    <p>
        <span style=";font-family:宋体">关于印发《西安市房地产估价行业收费指导意见》的通知</span>
    </p>
    <p>
        <span style=";font-family:宋体">各房地产估价机构<span>:</span></span>
    </p>
    <p>
        <span style=";font-family:宋体">为认真贯彻执行陕西省物价局、陕西省财政厅联合发布陕价行发<span>[2011]152</span>号文件<span>,</span>进一步加强行业自律、规范房地产评估收费行为、提高房地产估价的技术和服务<span>,</span>适应有关部门招标房地产评估项目的相关技术要求<span>,</span>为防止个别机构漫天要价或低于成本恶性竞争<span>,</span>建立健全房地产评估依据自主定价的市场机制<span>,</span>维护公平、公开、公正的房地产评估市场环境<span>,</span>应广大会员要求<span>,</span>在充分开展调研的基础上<span>,</span>结合省内外行业协会的做法并结合我市实际情况<span>,</span>制定了《西安市房地产估价行业收费指导意见》<span>,</span>经会员大会审议后由理事会表决通过<span>,</span>现予以印发<span>,</span>请遵照执行。</span>
    </p>
    <p>
        <span style=";font-family:宋体">附件<span>:</span>西安市房地产估价行业收费指导意见</span>
    </p>
    <p>
        <span style=";font-family:宋体">西安市房地产评估协会</span>
    </p>
    <p>
        <span style=";font-family:宋体">二零一八年五月</span>
    </p>
    <p style="text-indent:28px">
        <span style="font-family:宋体">&nbsp;</span>
    </p>
    <h1>
        西安市房地产估价行业收费指导意见
    </h1>
    <p>
        <span style=";font-family:宋体">各房地产估价机构为认真贯彻执行陕西省物价局、陕西省财政厅联合发布陕价行发<span>[2011]152</span>号文件<span>,</span>进一步加强行业自律、规范房地产评估收费行为、提高房地产估价的技术和服务<span>,</span>适应有关部门招标房地产评估项目的相关技术要求<span>,</span>为防止个别机构漫天要价或低于成本恶性竞争<span>,</span>建立健全房地产评估依据自主定价的市场机制<span>,</span>维护公平、公开、公正的房地产评估市场环境<span>,</span>借鉴省内外行业协会做法<span>,</span>结合我市当前市场的发展水平<span>,</span>估价行业的成本<span>,</span>估价师和评估机构应承担的法律责任与行业风险<span>,</span>就房地产估价等技术服务收费问题提出如下自律指导意见<span>,</span>供各单位参照执行。</span>
    </p>
    <p>
        <span style=";font-family:宋体">一、房地产评估收费实行市场调节价<span>,</span>按照“等价有偿、平等自愿”原则<span>,</span>由委托方和机构双方协商或通过招投标方式确定。</span>
    </p>
    <p>
        <span style=";font-family:宋体">二、房地产评估采取差额累进收费<span>,</span>即按房地产评估总额大小分费率档次<span>,</span>分档计算各档的收费额<span>,</span>各档收费之和为收费总额。收费标准共分六档<span>,</span>各档差额计费率如下表<span>:</span></span>
    </p>
    <table border="1" width="100%" style="border: none;">
        <tbody>
        <tr style=";page-break-inside:avoid;height:18px">
            <td width="83" style="width: 110px;border-width: 1px;border-color: windowtext;padding: 0;height: 18px">
                <p style=";margin-right:9px;margin-left:0;margin-bottom:0;text-align:center;text-indent:0;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">档次</span>
                </p>
            </td>
            <td width="231"
                style="width: 308px;border-top-width: 1px;border-right-width: 1px;border-bottom-width: 1px;border-top-color: windowtext;border-right-color: windowtext;border-bottom-color: windowtext;border-left: none;padding: 0;height: 18px">
                <p style="margin-left:0;text-align:center;text-indent:28px;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">房地产价格总额（万元）</span>
                </p>
            </td>
            <td width="122"
                style="width: 162px;border-top-width: 1px;border-right-width: 1px;border-bottom-width: 1px;border-top-color: windowtext;border-right-color: windowtext;border-bottom-color: windowtext;border-left: none;padding: 0;height: 18px">
                <p style="margin-left:0;text-align:center;text-indent:28px;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">累进计费率<span>‰</span></span>
                </p>
            </td>
        </tr>
        <tr style=";page-break-inside:avoid;height:11px">
            <td width="83"
                style="width: 110px;border-right-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-color: windowtext;border-bottom-color: windowtext;border-left-color: windowtext;border-top: none;padding: 0;height: 11px">
                <p style=";margin-right:9px;margin-left:0;margin-bottom:0;text-align:center;text-indent:0;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">1</span>
                </p>
            </td>
            <td width="231"
                style="width: 308px;border-top: none;border-left: none;border-bottom-width: 1px;border-bottom-color: windowtext;border-right-width: 1px;border-right-color: windowtext;padding: 0;height: 11px">
                <p style="margin-left:0;text-align:center;text-indent:28px;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">100</span><span
                        style="font-size: 16px;line-height: 150%;font-family: 宋体">以下（含<span>100</span>）</span>
                </p>
            </td>
            <td width="122"
                style="width: 162px;border-top: none;border-left: none;border-bottom-width: 1px;border-bottom-color: windowtext;border-right-width: 1px;border-right-color: windowtext;padding: 0;height: 11px">
                <p style="margin-left:0;text-align:center;text-indent:28px;line-height:150%">
                    <span style="font-size:16px;line-height:150%;font-family:宋体">9</span>
                </p>
            </td>
        </tr>
        <tr style=";page-break-inside:avoid;height:11px">
            <td width="83"
                style="width: 110px;border-right-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-color: windowtext;border-bottom-color: windowtext;border-left-color: windowtext;border-top: none;padding: 0;height: 11px">
                <p style=";margin-right:9px;margin-left:0;margin-bottom:0;text-align:center;text-indent:0;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">2</span>
                </p>
            </td>
            <td width="231"
                style="width: 308px;border-top: none;border-left: none;border-bottom-width: 1px;border-bottom-color: windowtext;border-right-width: 1px;border-right-color: windowtext;padding: 0;height: 11px">
                <p style="margin-left:0;text-align:center;text-indent:28px;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">100</span><span
                        style="font-size: 16px;line-height: 150%;font-family: 宋体">以上至<span>1000(</span>含<span>1000)</span></span>
                </p>
            </td>
            <td width="122"
                style="width: 162px;border-top: none;border-left: none;border-bottom-width: 1px;border-bottom-color: windowtext;border-right-width: 1px;border-right-color: windowtext;padding: 0;height: 11px">
                <p style="margin-left:0;text-align:center;text-indent:28px;line-height:150%">
                    <span style="font-size:16px;line-height:150%;font-family:宋体">3.75</span>
                </p>
            </td>
        </tr>
        <tr style=";page-break-inside:avoid;height:11px">
            <td width="83"
                style="width: 110px;border-right-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-color: windowtext;border-bottom-color: windowtext;border-left-color: windowtext;border-top: none;padding: 0;height: 11px">
                <p style=";margin-right:9px;margin-left:0;margin-bottom:0;text-align:center;text-indent:0;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">3</span>
                </p>
            </td>
            <td width="231"
                style="width: 308px;border-top: none;border-left: none;border-bottom-width: 1px;border-bottom-color: windowtext;border-right-width: 1px;border-right-color: windowtext;padding: 0;height: 11px">
                <p style="margin-left:0;text-align:center;text-indent:28px;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">1000</span><span
                        style="font-size: 16px;line-height: 150%;font-family: 宋体">以上至<span>5000(</span>含<span>5000)</span></span>
                </p>
            </td>
            <td width="122"
                style="width: 162px;border-top: none;border-left: none;border-bottom-width: 1px;border-bottom-color: windowtext;border-right-width: 1px;border-right-color: windowtext;padding: 0;height: 11px">
                <p style="margin-left:0;text-align:center;text-indent:28px;line-height:150%">
                    <span style="font-size:16px;line-height:150%;font-family:宋体">1.2</span>
                </p>
            </td>
        </tr>
        <tr style=";page-break-inside:avoid;height:11px">
            <td width="83"
                style="width: 110px;border-right-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-color: windowtext;border-bottom-color: windowtext;border-left-color: windowtext;border-top: none;padding: 0;height: 11px">
                <p style=";margin-right:9px;margin-left:0;margin-bottom:0;text-align:center;text-indent:0;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">4</span>
                </p>
            </td>
            <td width="231"
                style="width: 308px;border-top: none;border-left: none;border-bottom-width: 1px;border-bottom-color: windowtext;border-right-width: 1px;border-right-color: windowtext;padding: 0;height: 11px">
                <p style="margin-left:0;text-align:center;text-indent:28px;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">5000</span><span
                        style="font-size: 16px;line-height: 150%;font-family: 宋体">以上至<span>10000(</span>含<span>10000)</span></span>
                </p>
            </td>
            <td width="122"
                style="width: 162px;border-top: none;border-left: none;border-bottom-width: 1px;border-bottom-color: windowtext;border-right-width: 1px;border-right-color: windowtext;padding: 0;height: 11px">
                <p style="margin-left:0;text-align:center;text-indent:28px;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">0.75</span>
                </p>
            </td>
        </tr>
        <tr style=";page-break-inside:avoid;height:11px">
            <td width="83"
                style="width: 110px;border-right-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-color: windowtext;border-bottom-color: windowtext;border-left-color: windowtext;border-top: none;padding: 0;height: 11px">
                <p style=";margin-right:9px;margin-left:0;margin-bottom:0;text-align:center;text-indent:0;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">5</span>
                </p>
            </td>
            <td width="231"
                style="width: 308px;border-top: none;border-left: none;border-bottom-width: 1px;border-bottom-color: windowtext;border-right-width: 1px;border-right-color: windowtext;padding: 0;height: 11px">
                <p style="margin-left:0;text-align:center;text-indent:28px;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">10000</span><span
                        style="font-size: 16px;line-height: 150%;font-family: 宋体">以上至<span>100000(</span>含<span>100000)</span></span>
                </p>
            </td>
            <td width="122"
                style="width: 162px;border-top: none;border-left: none;border-bottom-width: 1px;border-bottom-color: windowtext;border-right-width: 1px;border-right-color: windowtext;padding: 0;height: 11px">
                <p style="margin-left:0;text-align:center;text-indent:28px;line-height:150%">
                    <span style="font-size:16px;line-height:150%;font-family:宋体">0.15</span>
                </p>
            </td>
        </tr>
        <tr style=";page-break-inside:avoid;height:8px">
            <td width="83"
                style="width: 110px;border-right-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-color: windowtext;border-bottom-color: windowtext;border-left-color: windowtext;border-top: none;padding: 0;height: 8px">
                <p style=";margin-right:9px;margin-left:0;margin-bottom:0;text-align:center;text-indent:0;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">6</span>
                </p>
            </td>
            <td width="231"
                style="width: 308px;border-top: none;border-left: none;border-bottom-width: 1px;border-bottom-color: windowtext;border-right-width: 1px;border-right-color: windowtext;padding: 0;height: 8px">
                <p style="margin-left:0;text-align:center;text-indent:28px;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">100000</span><span
                        style="font-size: 16px;line-height: 150%;font-family: 宋体">以上</span>
                </p>
            </td>
            <td width="122"
                style="width: 162px;border-top: none;border-left: none;border-bottom-width: 1px;border-bottom-color: windowtext;border-right-width: 1px;border-right-color: windowtext;padding: 0;height: 8px">
                <p style="margin-left:0;text-align:center;text-indent:28px;line-height:150%">
                    <span style="font-size: 16px;line-height: 150%;font-family: 宋体">0.1</span>
                </p>
            </td>
        </tr>
        </tbody>
    </table>
    <p>
        <br/>
    </p>
</div>

<div class="collect_div">
    <img id="collect_img" onclick="addCollectFun()" src="../img/un_collect.png">
    <div id="collect_txt" class="collect_txt">收藏</div>
</div>

<script src="../js/jquery-1.12.4.min.js"></script>
<script src="../js/common.js"></script>



<script>

    //-----------------公共变量--------------
    var assessedTitle = "";   //评估值标题
    var assessed = "";   //评估值
    var assessedDS = ""; //评估值大写

    var formula = "";   //公式
    var result = "";    //计算结果
    var resultDS = "";  //计算结果大写

    var money = "";     //收费金额
    var moneyDS = "";   //收费金额大写

    var XGSF_XS = "";
    var XGSF_DS = "";

    var SFJE_XS = "";
    var SFJE_DS = "";

    var formula2 = "";   //公式
    var moneyGS = "";
    var moneyGSDS = "";

    var XGSF_XS_GS = "";
    var XGSF_DS_GS = "";

    function getV(did) {
        var obj = document.getElementById(did);
        //alert(obj.value);
        return obj.value;
    }

    function getH(did) {
        return document.getElementById(did).innerHTML;
    }

    function share_computation() {
        var obj = document.getElementById("select_fw");
        var select = obj.options[obj.selectedIndex].value;

        if (select == "0") {
            var r0 = "";
            var r1 = "评估值:" + assessed + "(" + assessedDS + ")";

            var r66 = "浮动比例:" + getV("floatingrate") + "%";

            //var r2="计算公式(低限):"+formula;
            var r3 = "标准收费:(" + formula + ")*10000=" + money + "(" + moneyDS + ")";
            var r4 = "收费金额:标准收费*浮动比例=" + money + "*" + getV("floatingrate") + "%=" + XGSF_XS + "(" + XGSF_DS + ")";
            var r = r0 + "<br/><br/>" + r1 + "<br/><br/>" + r3 + "<br/><br/>" + r4 + "<br/><br/>" + r66;

            //var r5="计算公式(高限):"+formula2;
            var r6 = "标准收费(高限):" + formula2 + "=" + moneyGS + "(" + moneyGSDS + ")";
            var r7 = "收费金额(高限):标准收费*浮动比例=" + moneyGS + "*" + getV("floatingrate") + "%=" + XGSF_XS_GS + "(" + XGSF_DS_GS + ")";

            //r=r+"<br/><br/>"+r6+"<br/><br/>"+r7;
            return r;
        } else {

            var selectT = obj.options[obj.selectedIndex].text;
            var selectVa = "";
            if (select == "1") {
                selectVa = "800-1200";
            } else if (select == "2") {
                selectVa = "500-800";
            } else if (select == "3") {
                selectVa = "200-500";
            }

            var f = "";
            f = f + "<br/><br/>" + "服务项目:资产评估";
            f = f + "<br/><br/>" + selectT + "服务:" + getV("zsgr") + "小时";
            f = f + "<br/><br/>" + "标准收费=" + "(" + selectVa + ")*" + getV("zsgr") + "=" + getH("bzsfSX5") + "(" + getH("bzsfDX5") + ")";
            //f=f+"<br/><br/>"+"计算公式:"+"高级咨询专家	1000-1200<br/><br/> 高级专业技术人员	800-1000 <br/><br/> 一般专业技术人员	600-800";
            f = f + "<br/><br/>" + "浮动系数:" + getV("fdxs5") + "%";
            f = f + "<br/><br/>" + "收费金额=标准收费*浮动系数=(" + getH("bzsfSX5") + ")*" + getV("fdxs5") + "%=" + getH("sfjrXS5") + "(" + getH("sfjrDS5") + ")";

            return f;
        }


    }

    function share_computation_web() {
        var str = share_computation();
        var e = new RegExp("<br/>", "g");
        var words = str.replace(e, "\n");
        var cc = new RegExp("%25", "g");
        words = words.replace(cc, "%");
        return words;
    }


    function context() {
        var obj = document.getElementById("select_fw");
        var select = obj.options[obj.selectedIndex].value;

        if (select == "0") {
            document.getElementById("test2").style.display = "none";
            document.getElementById("test1").style.display = "";
            context1();
            //return;
        } else if (select == "1" || select == "2" || select == "3" || select == "4") {
            document.getElementById("test2").style.display = "";
            document.getElementById("test1").style.display = "none";

            if (select == "1") {
                context2(800, 1200);
            } else if (select == "2") {
                context2(500, 800);
            } else if (select == "3") {
                context2(200, 500);
            } else if (select == "4") {
                context2(100, 1000);
            }

            //return;
        }

        //显示计算过程
        showProcess();
        document.getElementById("process").innerHTML = "<h3>小程序：计费宝</h3>" + share_computation();
    }

    function context2(v1, v2) {
        //咨询工日
        var jfrXS = document.getElementById("zsgr").value;
        //jfrXS=parseFloat(jfrXS);
        var valu1 = jfrXS * v1;
        var valu2 = jfrXS * v2;

        document.getElementById("bzsfSX5").innerHTML = valu1 + "～" + valu2;//小写
        document.getElementById("bzsfDX5").innerHTML = convertCurrency(valu1) + "至" + convertCurrency(valu2);//大写

        var fdxs = document.getElementById("fdxs5").value;
        if (fdxs.length == 0) {
            return false;
        }
        var fdxs_value = parseFloat(fdxs) / 100;

        var moneyff1 = valu1 * fdxs_value;//收费金额1
        var moneyff2 = valu2 * fdxs_value;//收费金额2
        document.getElementById("sfjrXS5").innerHTML = moneyff1 + "～" + moneyff2;//收费金额小写
        document.getElementById("sfjrDS5").innerHTML = convertCurrency(moneyff1) + "至" + convertCurrency(moneyff2);//大写
    }

    //键盘事件计算
    function context1() {
        var assessedvalue = document.getElementById("assessedvalue").value;
        if (assessedvalue.length == 0) {
            //alert("评估值不能为空");
            return false;
        }

        var assessedDS1 = convertCurrency(assessedvalue);
        if ("404" != assessedDS1) {
            document.getElementById("assessedDS").innerHTML = assessedDS1;
        }
        assessed = assessedvalue;
        assessedDS = assessedDS1;
        //----------计算低限------------
        var A = parseFloat(assessedvalue);
        var value = getCountDX(A);
        var str = parseFloat(value).toFixed(2);
        document.getElementById("valueSX").innerHTML = "￥" + str;//标准收费小写
        var strDS = convertCurrency(str);
        document.getElementById("valueDX").innerHTML = strDS;//标准收费大写
        money = str;
        moneyDS = strDS;

        //浮动比例
        var floatingrate0 = document.getElementById("floatingrate").value;
        if (floatingrate0.length == 0) {
            return false;
        }
        var floatingrate = parseFloat(floatingrate0) / 100;
        var moneyff = str * floatingrate;//收费金额
        var moneyffDS = convertCurrency(moneyff);
        document.getElementById("valueSX_sfjr").innerHTML = "￥" + moneyff;//收费金额小写
        document.getElementById("valueDX_sfjr").innerHTML = moneyffDS;//收费金额大写
        XGSF_XS = moneyff;
        XGSF_DS = moneyffDS;
        //-----------计算低限end--------------------

        //----------计算高限------------
        var value1 = getCountGX(A);
        var str1 = parseFloat(value1).toFixed(2);
        document.getElementById("valueSX_gx").innerHTML = "￥" + str1;//标准收费小写
        var str1DS = convertCurrency(str1);
        document.getElementById("valueDX_gx").innerHTML = str1DS;//标准收费大写

        moneyGS = str1;
        moneyGSDS = str1DS;

        document.getElementById("gxfd").innerHTML = floatingrate0;//收费金额小写
        var moneyff1 = str1 * floatingrate;//收费金额
        moneyff1 = parseFloat(moneyff1).toFixed(2);
        var moneyff1DS = convertCurrency(moneyff1);
        document.getElementById("valueSX_gx1").innerHTML = "￥" + moneyff1;//收费金额小写
        document.getElementById("valueDX_gx1").innerHTML = moneyff1DS;//收费金额大写

        XGSF_XS_GS = moneyff1;
        XGSF_DS_GS = moneyff1DS;
        //----------计算高限--end----------

    }


    //计算低限
    function getCountDX(A) {
        A = A / 10000;
        var count = 0.00;
        formula = "0.00";
        if (A <= 100) {
            count = A * 0.009;
            formula = "" + A + "*0.009";
        } else if (A <= 1000) {
            count = 100 * 0.009 + (A - 100) * 0.00375;
            formula = "100*0.009+(" + A + "-100)*0.00375";
        } else if (A <= 5000) {
            count = 100 * 0.009 + 900 * 0.00375 + (A - 1000) * 0.0012;
            formula = "100*0.009+900*0.00375+(" + A + "-1000)*0.0012";
        } else if (A <= 10000) {
            count = 100 * 0.009 + 900 * 0.00375 + 4000 * 0.0012 + (A - 5000) * 0.00075;
            formula = "100*0.009+900*0.00375+4000*0.0012+(" + A + "-5000)*0.00075";
        } else if (A <= 100000) {
            count = 100 * 0.009 + 900 * 0.00375 + 4000 * 0.0012 + 5000 * 0.00075 + (A - 10000) * 0.00015;
            formula = "100*0.009+900*0.00375+4000*0.0012+5000*0.00075+(" + A + "-10000)*0.00015";
        } else if (A > 100000) {
            count = 100 * 0.009 + 900 * 0.00375 + 4000 * 0.0012 + 5000 * 0.00075 + 90000 * 0.00015 + (A - 100000) * 0.0001;
            formula = "100*0.009+900*0.00375+4000*0.0012+5000*0.00075+90000*0.00015+(" + A + "-100000)*0.0001";
        }
        return count * 10000;
    }

    //计算高限
    function getCountGX(A) {
        A = A / 10000;
        var count = 0.00;
        formula2 = "0.00";
        if (A <= 100) {
            count = A * A * 0.015;
            formula2 = "" + A + "*" + A + "*0.015";
        } else if (A <= 1000) {
            count = 100 * 0.015 + (A - 100) * 0.00625;
            formula2 = "100*0.015+(" + A + "-100)*0.00625";
        } else if (A <= 5000) {
            count = 100 * 0.015 + 900 * 0.00625 + (A - 1000) * 0.002;
            formula2 = "100*0.015+900*0.00625+(" + A + "-1000)*0.002";
        } else if (A <= 10000) {
            count = 100 * 0.015 + 900 * 0.00625 + 4000 * 0.002 + (A - 5000) * 0.00125;
            formula2 = "100*0.015+900*0.00625+4000*0.002+(" + A + "-5000)*0.00125";
        } else if (A <= 100000) {
            count = 100 * 0.015 + 900 * 0.00625 + 4000 * 0.002 + 5000 * 0.00125 + (A - 10000) * 0.00025;
            formula2 = "100*0.015+900*0.00625+4000*0.002+5000*0.00125+(" + A + "-10000)*0.00025";
        } else if (A > 100000) {
            count = 100 * 0.015 + 900 * 0.00625 + 4000 * 0.002 + 5000 * 0.00125 + 90000 * 0.00025 + (A - 100000) * 0.0002;
            formula2 = "100*0.015+900*0.00625+4000*0.002+5000*0.00125+90000*0.00025+(" + A + "-100000)*0.0002";
        }
        return count * 10000;
    }


    function convertCurrency(currencyDigits) {
// Constants:
        var MAXIMUM_NUMBER = 999999999999999999.99;
// Predefine the radix characters and currency symbols for output:
        var CN_ZERO = "零";
        var CN_ONE = "壹";
        var CN_TWO = "贰";
        var CN_THREE = "叁";
        var CN_FOUR = "肆";
        var CN_FIVE = "伍";
        var CN_SIX = "陆";
        var CN_SEVEN = "柒";
        var CN_EIGHT = "捌";
        var CN_NINE = "玖";
        var CN_TEN = "拾";
        var CN_HUNDRED = "佰";
        var CN_THOUSAND = "仟";
        var CN_TEN_THOUSAND = "万";
        var CN_HUNDRED_MILLION = "亿";
        var CN_SYMBOL = "";
        var CN_DOLLAR = "元";
        var CN_TEN_CENT = "角";
        var CN_CENT = "分";
        var CN_INTEGER = "整";

// Variables:
        var integral; // Represent integral part of digit number.
        var decimal; // Represent decimal part of digit number.
        var outputCharacters; // The output result.
        var parts;
        var digits, radices, bigRadices, decimals;
        var zeroCount;
        var i, p, d;
        var quotient, modulus;

// Validate input string:
        currencyDigits = currencyDigits.toString();
        if (currencyDigits == "") {
            alert("输入项为空");
            return "";
        }
        if (currencyDigits.match(/[^,.\d]/) != null) {
            //alert("Invalid characters in the input string!");
            alert("非法输入");
            return "";
        }
        if ((currencyDigits).match(/^((\d{1,3}(,\d{3})*(.((\d{3},)*\d{1,3}))?)|(\d+(.\d+)?))$/) == null) {
            //alert("Illegal format of digit number!");
            return "404";
        }

//小数点截取,如果小数为0就取整
        if (currencyDigits.indexOf(".00") > 0) {
            currencyDigits = currencyDigits.substr(0, currencyDigits.indexOf('.'));
        }

// Normalize the format of input digits:
        currencyDigits = currencyDigits.replace(/,/g, ""); // Remove comma delimiters.
        currencyDigits = currencyDigits.replace(/^0+/, ""); // Trim zeros at the beginning.
// Assert the number is not greater than the maximum number.
        if (Number(currencyDigits) > MAXIMUM_NUMBER) {
            alert("Too large a number to convert!");
            return "";
        }

// Process the coversion from currency digits to characters:
// Separate integral and decimal parts before processing coversion:
        parts = currencyDigits.split(".");
        if (parts.length > 1) {
            integral = parts[0];
            decimal = parts[1];
            // Cut down redundant decimal digits that are after the second.
            decimal = decimal.substr(0, 2);
        } else {
            integral = parts[0];
            decimal = "";
        }
// Prepare the characters corresponding to the digits:
        digits = new Array(CN_ZERO, CN_ONE, CN_TWO, CN_THREE, CN_FOUR, CN_FIVE, CN_SIX, CN_SEVEN, CN_EIGHT, CN_NINE);
        radices = new Array("", CN_TEN, CN_HUNDRED, CN_THOUSAND);
        bigRadices = new Array("", CN_TEN_THOUSAND, CN_HUNDRED_MILLION);
        decimals = new Array(CN_TEN_CENT, CN_CENT);
// Start processing:
        outputCharacters = "";
// Process integral part if it is larger than 0:
        if (Number(integral) > 0) {
            zeroCount = 0;
            for (i = 0; i < integral.length; i++) {
                p = integral.length - i - 1;
                d = integral.substr(i, 1);
                quotient = p / 4;
                modulus = p % 4;
                if (d == "0") {
                    zeroCount++;
                } else {
                    if (zeroCount > 0) {
                        outputCharacters += digits[0];
                    }
                    zeroCount = 0;
                    outputCharacters += digits[Number(d)] + radices[modulus];
                }
                if (modulus == 0 && zeroCount < 4) {
                    outputCharacters += bigRadices[quotient];
                }
            }
            outputCharacters += CN_DOLLAR;
        }
// Process decimal part if there is:
        if (decimal != "") {
            for (i = 0; i < decimal.length; i++) {
                d = decimal.substr(i, 1);
                if (d != "0") {
                    outputCharacters += digits[Number(d)] + decimals[i];
                }
            }
        }
// Confirm and return the final output string:
        if (outputCharacters == "") {
            outputCharacters = CN_ZERO + CN_DOLLAR;
        }
        if (decimal == "") {
            outputCharacters += CN_INTEGER;
        }
        outputCharacters = CN_SYMBOL + outputCharacters;
        return outputCharacters;
    }
</script>
</body>
</html>
